import { defultAlova } from '../index.js';

// 验证企业码
export const checkMechanismCode = (mechanismCode) => {
  const method = defultAlova.Get(
    "/customer/sysUserController/checkMechanismCode",
    { params: { mechanismCode } }
  );
  return method;
};
// 验证是否是企业员工
export const validEmployee = (mechanismCode) => {
  const method = defultAlova.Get('/customer/sysUserController/validEmployee', {
    params: { mechanismCode },
  });
  return method;
};
// 企业码加入企业
export const addMemberByMechanismCode = (data) => {
  const method = defultAlova.Post(
    "/customer/sysUserController/addMemberByMechanismCode",
    data
  );
  return method;
};

// 0.0.2申请成为企业
export const createMechanism = (data) => {
  const method = defultAlova.Post(
    "/customer/sysUserController/createMechanism",
    data
  );
  return method;
};
// 订餐规则
export const getMemberRule = (params) => {
  return defultAlova.Get("/customer/sysUserController/getMemberRule", {
    params,
  });
};
